package com.example.demo4.service;

import com.example.demo4.entity.Student;

import java.util.List;

public interface StudentService {
    /**
     * 添加学生
     * @param student
     * @return
     */
    public boolean addStudent(Student student)throws Exception;
    /**
     * 通过Id查询学生
     * @param id
     * @return
     * @throws Exception
     */
    public Student getStudentById(Integer id) throws Exception;
    /**
     * 表单
     */
    public List<Student> getStudentList() throws Exception;
}
